package cn.org.timespace.ons.service.base.impl;

import java.util.List;

import cn.org.timespace.ons.action.base.OptionsModel;
import cn.org.timespace.ons.dao.base.OptionsDao;
import cn.org.timespace.ons.service.base.OptionsService;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.Options;


public class OptionsServiceImpl implements OptionsService{

	private OptionsDao tsOptionsDao;
	@Override
	public List<Options> findByCondition(OptionsModel model) {
		// TODO Auto-generated method stub
		return tsOptionsDao.findByCondition(model);
	}
	public OptionsDao getTsOptionsDao() {
		return tsOptionsDao;
	}
	public void setTsOptionsDao(OptionsDao tsOptionsDao) {
		this.tsOptionsDao = tsOptionsDao;
	}
	@Override
	public List<Object> findByCondition(OptionsModel model, Pager p) {
		// TODO Auto-generated method stub
		return tsOptionsDao.findByCondition(model, p);
	}
	@Override
	public void delete(Options persistentInstance) {
		// TODO Auto-generated method stub
		tsOptionsDao.delete(persistentInstance);
	}
	@Override
	public Options findById(String id) {
		// TODO Auto-generated method stub
		return tsOptionsDao.findById(id);
	}
	@Override
	public void save(Options transientInstance) {
		// TODO Auto-generated method stub
		tsOptionsDao.save(transientInstance);
	}
	@Override
	public void update(Options instance) {
		// TODO Auto-generated method stub
		tsOptionsDao.update(instance);
	}
	@Override
	public Options doCheckOptionsNameIsExist(String name) {
		// TODO Auto-generated method stub
		return tsOptionsDao.doCheckOptionsNameIsExist(name);
	}

}
